package collectors;

import data.Event;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import parser.txtParser;

/**
 *
 * @author David Csejtei, CodeGuide Team, http://codeguide.hu
 */

public class EventCollector extends Thread {
    
    @Override
    public void run() {
        // Get the events from the txt
        List<Event> eventList = txtParser.readEventsFromTxt();

        // Start all events in same time
        while(!eventList.isEmpty()) {
            Event e = eventList.get(0);
            e.start();
            eventList.remove(0);
        }
    }

}
